package com.dmap.admin.vo;

import com.dmap.admin.po.AdminRole;
import com.dmap.base.pojo.BasePojo;

import java.util.List;

/**
 * \* User: silent
 * \* Date: 05/01/18 Time: 09:53
 * \* Description:
 * \
 */
public class RoleVo extends BasePojo {

    /**
     * 主键id
     * 表字段 : admin_role.id
     */
    private String id;

    /**
     * 角色名称
     * 表字段 : admin_role.name
     */
    private String name;

    /**
     * 角色描述
     * 表字段 : admin_role.description
     */
    private String description;
    private List<PermissionVo> permissionVoList;

    public RoleVo() {
    }

    public RoleVo(AdminRole adminRole) {
        id = adminRole.getId().toString();
        name = adminRole.getName();
        description = adminRole.getDescription();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<PermissionVo> getPermissionVoList() {
        return permissionVoList;
    }

    public void setPermissionVoList(List<PermissionVo> permissionVoList) {
        this.permissionVoList = permissionVoList;
    }
}
